package icu.sunway.gushenBlogBackEnd.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import icu.sunway.gushenBlogBackEnd.Entity.Data.ArticleDO;
import icu.sunway.gushenBlogBackEnd.Entity.View.Article.ArticlePostVO;
import icu.sunway.gushenBlogBackEnd.Entity.View.Article.ArticleUpdateVO;
import icu.sunway.gushenBlogBackEnd.Entity.View.ResultVO;

import java.util.List;

public interface ArticleService extends IService<ArticleDO> {
    ResultVO<List<ArticleDO>> getArticleList();

    ResultVO<List<ArticleDO>> getArticleListByPage(int curPage, int pageSize);

    ResultVO<Long> getArticleCount();

    ResultVO<ArticleDO> getArticleById(String id);

    ResultVO<Boolean> addArticle(ArticlePostVO articlePostVO, String token);

    ResultVO<Boolean> updateArticle(ArticleUpdateVO articleUpdateVO);

    ResultVO<Boolean> deleteArticle(String id);
}
